package com.diy.sigmund.diycommon.test.controller.other;

import com.diy.sigmund.diycommon.entity.ResultMsg;
import com.springstudy.service.HelloStarterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ylm-sigmund
 * @since 2021/10/23 19:41
 */
@RestController
public class StarterTestController {

    @Autowired
    private HelloStarterService helloStarterService;

    @GetMapping("/starterTestController/test")
    public ResultMsg test() {
        return ResultMsg.success(helloStarterService.sayHello());
    }
}
